﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Platform.Storage.Redis
{
	public abstract class RedisCommandsBase
	{

		protected RedisCommandsBase( RedisMessageChannel channel )
		{
			this.Channel = channel;
		}

		public RedisMessageChannel Channel
		{ get; private set; }

		protected void ErrorIf( bool condition )
		{
			if ( condition )
				throw new InvalidOperationException();
		}
	}
}
